<?php

/**
 * 后台路由
 */


/**
 * 登陆、登出
 */
Route::group(['prefix'=>'mcadmin','namespace'=>'Admin'],function() {
    Route::get('login', 'LoginController@login');
    Route::post('dologin', 'LoginController@doLogin');
    Route::get('logout', 'LoginController@doLogout');
});


/**
 * 后台页面
 */
Route::group(['prefix'=>'mcadmin',
    'middleware' => ['web','admin'],
    'namespace'=>'Admin'],function(){
    Route::get('/','HomeController@index');
    Route::get('git','HomeController@setCodeGit');

    Route::group(['prefix'=>'basic'],function(){
        Route::get('/','HomeController@index');
        include_once('adminBasic.php');
    });


    Route::any('test', 'HomeController@test');
    Route::any('apilist', 'HomeController@apilist');
    Route::any('money/shenhe', 'MoneyController@shenhe');
    Route::any('msg/system', 'MsgController@system');
    Route::any('file/pic', 'file\FileController@pic');

    Route::any('system/clear', 'SystemController@clear');
    Route::any('system/annotation', 'SystemController@annotation');


  //  Route::any('system/call/{c}','Admin\ApiControler@index');
});